﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class TimKiem : System.Web.UI.Page
{
    timkiem tk = new timkiem();
    protected void Page_Load(object sender, EventArgs e)
    {
        string chude = Request.QueryString["chude"];
       
        string tugia = Request.QueryString["tugia"];
        string dengia = Request.QueryString["dengia"];
        DTLHoaCungLoai.DataSource = tk.load_dshoa(chude, tugia, dengia);
        DTLHoaCungLoai.DataBind();
    }
    protected void DTLHoaCungLoai_ItemCommand(object source, DataListCommandEventArgs e)
    {
        if (e.CommandName == "chon")
        {
            string MaLoai = DTLHoaCungLoai.DataKeys[e.Item.ItemIndex].ToString();
            Session["Maloai"] = MaLoai;
            string Mahoa = e.CommandArgument.ToString();
            Session["Mahoa"] = Mahoa;
            Response.Redirect("CTHoa.aspx");
        }
    }
}